<template>
  <div>
    <div class="ym">
      <router-link to="/home">首页</router-link>
      <router-link to="/class">分类</router-link>
      <router-link to="/order">订单</router-link>
      <router-link to="/myvue">我的</router-link>
    </div>
    <h3>显示路由切换的页面</h3>
    <div class="aaaa">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style>
a{
  margin-left: 10px;
}
h3{
  margin-left: 10px;
}
.aaaa{
  margin-left: 10px;

}
</style>